#!/usr/bin/python
# Filename: func_global.py

y = 3

def func():
    global x

    print 'x is' , x
    print 'y is' , y
    x = 2
    print 'Changed local x to',x

x = 50
func()
print 'value of x is' , x
